package com.hupu.selenium.jop.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {
	
	private static final String conf_path = "/conf/hupu.properties";
	
	private static Properties prop;
	
	static {
		prop = new Properties();
		InputStream in = Object.class.getResourceAsStream(conf_path);
		try {
			prop.load(in);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static Properties getProperties(){
		return prop;
	}
	
	public static void main(String[] args) {
		System.out.println(PropertiesUtils.getProperties().get("hupu.application.name"));
	}

}
